package com.founder.gateway.system.consts;

public class Consts {
    public static final String RESULT_CODE_NAME = "code";
    public static final String RESULT_MSG_NAME = "msg";
    public static final String RESULT_DATA_NAME = "rows";
    public static final String RESULT_TOTAL_NAME = "total";
    public static final int RESULT_CODE_SUCCESS = 200;
    public static final int RESULT_CODE_FAIL = 500;

    public static final String XT_ZXBZ_YZX = "1";
    public static final String XT_ZXBZ_WZX = "0";

    public static final String REQUEST_HEADERS = "headers";
    public static final String REQUEST_PARAMS = "params";
    public static final String REQUEST_BODY = "body";
    public static final String REQUEST_MIX_PARAMS = "mix_params";
    public static final String REQUEST_MIX_BODY = "mix_body";
    public static final String REQUEST_SESSION_HEADERS = "session_headers";
    public static final String REQUEST_SESSION_PARAMS = "session_params";
    public static final String REQUEST_SESSION_BODY = "session_body";

    public static final String IMPLE_MODE_WEBSERVICE = "WebService";
    public static final String IMPLE_MODE_RESTFUL = "RESTFul";

    public static final String AUTHORIZATION_HEADER = "authorization";

    public static final String AUTHENTICATION_MODE_BASIC = "Basic";
    public static final String AUTHENTICATION_MODE_BEARER = "Bearer";

    public static final String API_USERID = "api_userid";
    public static final String API_ORGCODE = "api_orgcode";

    public static final String TOKEN_AID = "aid";

    //校验类型 0 默认值  1 正则表达式 2 el表达式 3url校验 4空则填入默认值 5追加参数  6管辖校验
    public static final String REQUEST_PARAM_VERIFY_DEFAULT = "0";
    public static final String REQUEST_PARAM_VERIFY_REGEX = "1";
    public static final String REQUEST_PARAM_VERIFY_EL = "2";
    public static final String REQUEST_PARAM_VERIFY_URL = "3";
    public static final String REQUEST_PARAM_VERIFY_IF_NULL_FOR_DEFAULT = "4";
    public static final String REQUEST_PARAM_VERIFY_APPEND_PARAM = "5";
    public static final String REQUEST_PARAM_VERIFY_GXDW = "6";
    public static final String REQUEST_PARAM_VERIFY_EL_HANDLE = "7";


    public static final String REQUEST_PARAM_REQUIRED = "1";
    public static final String REQUEST_PARAM_NOT_REQUIRED = "0";
}
